package com.itheima.mString;

import java.util.Scanner;

/*
   字符串遍历
 */
public class StringDemo02 {
    public static void main(String[] args) {
        //1.键盘录入一个字符串,用Scanner输入
        Scanner sc = new Scanner(System.in);
        String s = sc.nextLine();
        //2.遍历字符串,遍历获取字符串中的每一个字符
        for (int i = 0; i < s.length(); i++) {
            char c = s.charAt(i);
            System.out.print(c);
        }
        System.out.println();
        char[] cs = {'a', 'b'};
        System.out.println(cs);
        int[] ss = {1,2};
        System.out.println(ss);
        int[][] a= new int[2][2];
        int[] a1 = {1,2,3};
        a[1] = a1;
        System.out.println(a[1][2]);
        a[1][2] = 4;
        System.out.println(a[1][2]);
    }
}
